package com.ymatou.iapi.trading.sellerquery.parameter.entities;

import java.math.BigDecimal;

import net.sf.json.JSONObject;

import com.ymttest.utils.DataUtil;
import com.ymttest.utils.YMTDateUtil;

public class OrderTradeflowRefund {
	// Summary:
	// 退款时间
	private String AddTime = DataUtil.defaultDateString;
	//
	// Summary:
	// 订单号
	private int OrderId;
	//
	// Summary:
	// 退款金额(+)
	private BigDecimal RefundAmount;
	//
	// Summary:
	// 退款单号
	private String RefundBillNo;
	//
	// Summary:
	// 退款渠道
	private String RefundChannel;

	public String getAddTime() {
		if(AddTime !=null){
			return YMTDateUtil.parseRespDate2(String.valueOf(AddTime));
		}
		return AddTime;
	}

	public void setAddTime(String addTime) {
		if (addTime != null) {
			AddTime = YMTDateUtil.parseRespDate2(String.valueOf(addTime));
		}
	}

	public int getOrderId() {
		return OrderId;
	}

	public void setOrderId(int orderId) {
		OrderId = orderId;
	}

	public BigDecimal getRefundAmount() {
		return RefundAmount;
	}

	public void setRefundAmount(BigDecimal refundAmount) {
		RefundAmount = refundAmount;
	}

	public String getRefundBillNo() {
		return RefundBillNo;
	}

	public void setRefundBillNo(String refundBillNo) {
		RefundBillNo = refundBillNo;
	}

	public String getRefundChannel() {
		return RefundChannel;
	}

	public void setRefundChannel(String refundChannel) {
		RefundChannel = refundChannel;
	}
	
	public String toString(){
		return JSONObject.fromObject(this).toString();
	}
}
